//
//  HttpUserAction.m
//  EPBPro
//
//  Created by wucha on 2018/6/25.
//  Copyright © 2018年 fc. All rights reserved.
//

#import "HttpUserAction.h"

@implementation HttpUserAction
+(void)getUserMenuWithUserId:(NSString*)usrId block:(HTTPResultBlock)block{
    NSString *requestString = [Utils getUrlWithAction:[NSString stringWithFormat:@"%@%@",ActionUserMenu,usrId] parmasAndKeys:nil];
    [self requestWithRequest:requestString jsonParserSelector:@selector(getUserMenuResultWithResponseData:) finish:block];
}

+(void)postModifyPass:(PasswordActionInfo*)passwordActionInfo block:(HTTPResultBlock)block{
    NSString *requestString = [Utils getUrlWithAction:ActionModifyPass parmasAndKeys:nil];
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    [params setObject:passwordActionInfo.password forKey:@"password"];
    [params setObject:passwordActionInfo.againPassword forKey:@"newPassword"];
    [self postRequestWithRequest:requestString withParam:params jsonSelector:@selector(getModifyPassWordResultWithResponseData:) finish:block];

}



@end
